package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 停车位信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("parking")
@Schema(description = "停车位信息")
public class ParkingSpace implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    /** 车位编号 */
    @TableField("numbers")
    @Schema(description = "车位编号")
    private String numbers;

    /** 状态：0-空闲，1-已占用 */
    @TableField("status")
    @Schema(description = "状态：0-空闲，1-已占用")
    private Integer status;

    /** 关联业主ID */
    @TableField("owner_id")
    @Schema(description = "关联业主ID")
    private Integer ownerId;

    /** 车位描述 */
    @TableField(value = "`desc`")
    @Schema(description = "车位描述")
    private String description;
}
